<div>
<?php 
  //odkaz veduci na listing projektov (akcia admin_list)
  //'admin' => true znamena, ze v url sa pouzije prefix "admin" a zavila sa akcia s tymto preffixom, cize "admin" + "list" = "admin_list"
  // http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::link
  $tmp = $this->Html->link('Back', array('admin' => true, 'controller' => 'projects', 'action' => 'list'));
  echo str_replace('Back', '<button class="bold rounded bordered gradient">Naspäť</button>', $tmp);
?>  

<?php   
  // nezaregistrovany pouzivatel nema pravo vidiel zmazane projekty
  if (!($this->Session->check('Auth.User'))&&($call['Call']['is_deleted'] == 1))
    continue;
?>
  <h1><?php echo $call['Call']['name']?></h1>
  
  <div id="detail">
    <p><?php echo '<b>Popis výzvy:</b><br />'.$call['Call']['description'];?> </p>
    <p><?php echo '<b>Agentúra:</b><br />'.$call['Agency']['name'].' - '.$call['Agency']['fullname']; ?> </p>
    <?php if($call['Call']['is_deleted'] == 1) echo '<p>Projekt je už zmazaný</p>';?>
  </div>
</div>